package com.acme.bankapp.network;

import com.acme.bankapp.domain.bank.Bank;
import com.acme.bankapp.service.bank.BankDataLoaderService;

public class BankReport {
    private Bank bank;

    public BankReport(Bank bank) {
        this.bank = bank;
    }

    String add(String data) {
        BankDataLoaderService.loadLine(bank, data);
        return "client added";
    }

    String print() {
        return bank.toString();
    }
}
